﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ShipMent.aspx.cs" Inherits="AlbonWeb.Manager.OrderManager.ShipMent" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Ship Ment</title>
    <script src="/js/ADS.js" type="text/javascript"></script>
    <script src="/js/content.js" type="text/javascript"></script>
    <link href="/css/Content.css" rel="stylesheet" type="text/css" />
    <style type="text/css">
        html, body, form
        {
            height: 100%;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div class="rod_left">
    </div>
    <div class="rod_right">
    </div>
    <div class="main_contented">
        <div class="right_top">
            <span class="scon_word">Order>>Ship Ment</span>
        </div>
        <table width="750" border="0" class="table_add" cellpadding="0" cellspacing="0">
            <tr class="content_title">
                <td align="left">
                    <a href="ShipRecord.aspx" class="btnNext">
                        <img src="/images/record.png" alt="" />
                        Ship Record</a>
                </td>
                <td>
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td colspan="2">
                    <table width="90%" cellpadding="0" cellspacing="0" border="1" bordercolor="#AFDA8C"
                        class="tb_list">
                        <asp:Repeater ID="repMain" runat="server">
                            <HeaderTemplate>
                                <tr class="tr_list_head">
                                    <td>
                                        <input type="checkbox" class="check_all" />
                                    </td>
                                    <td>
                                        REF#
                                    </td>
                                    <td style="width: 10%">
                                        Dealer
                                    </td>
                                    <td>
                                        Item Name
                                    </td>
                                    <td>
                                        QTY
                                    </td>
                                    <td>
                                        Weight
                                    </td>
                                    <td>
                                        MSG
                                    </td>
                                    <td>
                                        Detail
                                    </td>
                                    <td>
                                        Required Ship Date
                                    </td>
                                    <td>
                                        CreateDate
                                    </td>
                                </tr>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <tr class="tr_list_content">
                                    <td>
                                        <input type="checkbox" class="check_item" value='<%#Eval("ID")%>' <%#bool.Parse(Eval("ship").ToString())?"disabled='disabled'":"" %> />
                                    </td>
                                    <td>
                                        <%#Eval("refNo") %>
                                    </td>
                                    <td>
                                        <%#Eval("userName") %>
                                    </td>
                                    <td>
                                        <%#Eval("itemName") %>
                                    </td>
                                    <td>
                                        <%#Eval("quantity") %>
                                    </td>
                                    <td>
                                        <%#Eval("weight")%>
                                        kg
                                    </td>
                                    <td>
                                        <a href='/Manager/MessageManager/MessageList.aspx?orderid=<%#Eval("orderID")%>'>
                                            <asp:Image ID="imgMessage" ImageUrl="/images/mail_view.png" runat="server" />
                                    </td>
                                    <td>
                                        <a href='/Order/OrderPage.aspx?orderid=<%#Eval("orderID")%>' target="_blank" onclick="return openDialog(this.href)">
                                            <img src="/images/details.png" alt="" /></a>
                                    </td>
                                    <td>
                                        <%#Eval("requiredShipDate") %>
                                    </td>
                                    <td>
                                        <%#Eval("createDate") %>
                                    </td>
                                </tr>
                            </ItemTemplate>
                        </asp:Repeater>
                    </table>
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td class="td_left">
                    Ship Company:
                </td>
                <td class="td_right">
                    <asp:DropDownList ID="ddlShipCompany" runat="server">
                        <asp:ListItem>Fedex</asp:ListItem>
                        <asp:ListItem>DHL</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr class="data_darkcolor">
                <td class="td_left">
                    Tracking No:
                </td>
                <td class="td_right">
                    <asp:TextBox ID="trackNo" runat="server"></asp:TextBox>
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td class="td_left">
                    Remark:
                </td>
                <td class="td_right">
                    <textarea id="remark" cols="20" rows="3" style="width: 70%" runat="server"></textarea>
                </td>
            </tr>
            <tr class="data_darkcolor">
                <td>
                </td>
                <td class="td_right">
                    <asp:HiddenField ID="hfchecklist" runat="server" />
                    <asp:Button ID="ShipMent_btnShip" runat="server" Text="Ship" class="checklist" OnClick="btnShip_Click" />
                    <asp:Button ID="btnBack" runat="server" Text="Back" OnClick="btnBack_Click" />
                </td>
            </tr>
            <tr class="data_lightcolor">
                <td class="td_left">
                    &nbsp;
                </td>
                <td class="td_right">
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
